package com.sanctuary.models;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.sanctuary.interfaces.Model;

public class User implements Model {
	private int id;
	private String username;
	private String password;
	private String fname;
	private String lname;
	private String zipCode;
	private String email;
	private int isConfirmed;
	private int permissions;
	private Date dateAdded;
	private Date dateLastModified;
	private int isActive;
	
	private List<UserElement> elements;
	private List<UserIp> ipAddrs;
	
	public User() {
		elements = new ArrayList<UserElement>();
		ipAddrs = new ArrayList<UserIp>();
	}

	public String getAliasName() {
		// TODO Auto-generated method stub
		return "user";
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getFname() {
		return fname;
	}

	public void setFname(String fname) {
		this.fname = fname;
	}

	public String getLname() {
		return lname;
	}

	public void setLname(String lname) {
		this.lname = lname;
	}

	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public int getIsConfirmed() {
		return isConfirmed;
	}

	public void setIsConfirmed(int isConfirmed) {
		this.isConfirmed = isConfirmed;
	}

	public int getPermissions() {
		return permissions;
	}

	public void setPermissions(int permissions) {
		this.permissions = permissions;
	}

	public Date getDateAdded() {
		return dateAdded;
	}

	public void setDateAdded(Date dateAdded) {
		this.dateAdded = dateAdded;
	}

	public Date getDateLastModified() {
		return dateLastModified;
	}

	public void setDateLastModified(Date dateLastModified) {
		this.dateLastModified = dateLastModified;
	}

	public int getIsActive() {
		return isActive;
	}

	public void setIsActive(int isActive) {
		this.isActive = isActive;
	}

	public List<UserElement> getElements() {
		return elements;
	}

	public void setElements(List<UserElement> elements) {
		this.elements = elements;
	}

	public List<UserIp> getIpAddrs() {
		return ipAddrs;
	}

	public void setIpAddrs(List<UserIp> ipAddrs) {
		this.ipAddrs = ipAddrs;
	}
	
}
